package com.info.zhiduoduo.repository.entity.quota;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author bob
 * @since 2020-06-26
 */
@Data
@Accessors(chain = true)
@TableName("zdd_city_config")
public class CityConfig extends Model<CityConfig> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/**
	 * 省份id
	 */
	@TableField("province_id")
	private Integer provinceId;
	/**
	 * 城市id
	 */
	@TableField("city_id")
	private Integer cityId;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 支付公司类型: 1:得仕 2:传化
	 */
	@TableField("pay_company_type")
	private Integer payCompanyType;
	/**
	 *  商户类型 1:九歌 2:武圣 3:智圣
	 */
	@TableField("zdd_merchant_type")
	private Integer zddMerchantType;
	/**
	 * 众包支付商户号
	 */
	@TableField("cs_merchantid")
	private String csMerchantid;
	/**
	 * 众包支付key
	 */
	@TableField("cs_md5key")
	private String csMd5key;
	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 众包城市对应的甲方企业id（zdd_crowdsource_company_party）
	 */
	@TableField("party_id")
	private Integer partyId;

	/**
	 * 逻辑删除 0:正常 1:已删除
	 */
	@TableLogic
	private Integer deleted;
	private Date createtime;
	private Date updatetime;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
